import { ClassName } from "@/Constants";
import Bbox from "../Bbox";
import Pnt from "../Pnt";

// 贝塞尔控制点, 只在初始化定义位置
export default class BCtrlPnt extends Pnt {

    parent: Bbox;

    constructor(parent: Bbox, x: number, y: number, width: number = 14, height?:number) {   // 相对坐标
        super(x, y, width, height);
        this.className = ClassName.BCTRLPNT;
        this.parent = parent;
        this.isFixedPos = parent.isFixedPos;
        this.parent.addChild(this, false);
    }
}